package org.example.wx.client;

import io.netty.channel.socket.SocketChannel;
import org.apache.zookeeper.KeeperException;
import org.example.wx.client.connection.ConnectionManager;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class ProxyClientHandler implements InvocationHandler {

    private SocketChannel channel;

    ProxyClientHandler(Class serviceInterface) {
        try {
            this.channel = ConnectionManager.getConnectionByServiceName(serviceInterface.getName());
        } catch (KeeperException | InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {

        return null;
    }
}
